package com.lxyk.yygh.hosp.service;


import com.lxyk.yygh.model.hosp.Department;
import com.lxyk.yygh.vo.hosp.DepartmentQueryVo;
import com.lxyk.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * 科室排班
 */
public interface DepartmentService {

    //上传科室信息
    void save(Map<String,Object> paramMap);
    //分页查询科室信息
    Page<Department> findPageDepartment(int current, int limit, DepartmentQueryVo departmentQueryVo);
    //删除科室
    void remove(String hoscode,String depcode);

    //排班相关展示-->根据hoscode医院编号查询所有科室
    List<DepartmentVo> findDeptTree(String hoscode);

    /**
     * 科室名称
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDepName(String hoscode, String depcode);

    // /**
    //     * 根据科室编号,和医院编号,查询科室
    //     */
    Department getDepartment(String hoscode, String depcode);
}
